
import { ControllerBase } from "@/components";
import React from "react";

export class SystemControllerState {
    /** 登录标识 */
    token?: string | null = sessionStorage.getItem('$_use_token');
}

/** 系统控制器 */
export class SystemController extends ControllerBase<SystemControllerState> {

    static Context = React.createContext<SystemController>(undefined as any);

    static State = SystemControllerState;

    constructor() {
        super(new SystemControllerState());
    }
}
